package json;

import java.io.File;
import java.io.FileNotFoundException;
import java.util.ArrayList;
import java.util.Scanner;

import com.google.gson.Gson;

public class TestJsonShop {

	
	
	public static void main(String[] args) throws FileNotFoundException {
		
		TestJsonShop shop = new TestJsonShop();
		Gson gson = new Gson();
		
		Scanner sc = new Scanner(new File("shop.json"));
		StringBuffer buf = new StringBuffer();
		while (sc.hasNext()) buf.append(sc.nextLine());
		
		ArrayList list = gson.fromJson(buf.toString(),ArrayList.class);
		System.out.println(list);

	}

}
